import { post,get,uploadFile } from "../request/request";

// 获取待接订单
export const getWaitReciveOrder = ()=>{
	return get("/system/order")
}

// 查询快递
export const queryExpress=(id)=>{
	return get(`/system/express/${id}`)
}

// 接单
export const acceptOrder=(orderId)=>{
	return get(`/system/order/${orderId}/accept`)
}

// 获取发布得订单
export const getPublishOrderList =()=>{
	return get(`/system/order/sent`)
}

// 获取接受过的订单
export const getAcceptOrderList = ()=>{
	return get("/system/order/claimed")
}

// 发布代取代寄
export const publishOrder=(orderDto)=>{
	return post('/system/order/add',orderDto)
}

// 获取订单详情
export const getOderDetail = (orderId)=>{
	return get(`/system/order/${orderId}`)
}

// 送达订单
export const finishOrder = (orderId)=>{
	return get(`/system/order/${orderId}/finish`)
}

// 支付订单
export const payOrder = (paymentId)=>{
	return get(`/system/payment/${paymentId}/pay`) 
}